<template>
  Home
  <RouterLink to="/About">通过router link 的方式跳转到Detail</RouterLink>
  <button @click="router.push({ path:'about',query:{a:'1'} })">通过router.push Detail</button>
</template>

<script setup lang="ts">
  import {useRouter} from 'vue-router'
  const router = useRouter()
</script>

<style scoped>

</style>